home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9907 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 69 78 | 2e 6e 65 74 63 6f 6d 2e |Path: ix|.netcom.|
|00000010| 63 6f 6d 21 6e 65 74 6e | 65 77 73 0a 46 72 6f 6d |com!netn|ews.From|
|00000020| 3a 20 5a 61 63 68 61 72 | 79 20 43 61 72 74 65 72 |: Zachar|y Carter|
|00000030| 20 3c 7a 63 61 72 74 65 | 72 40 69 78 2e 6e 65 74 | <zcarte|r@ix.net|
|00000040| 63 6f 6d 2e 63 6f 6d 3e | 0a 4e 65 77 73 67 72 6f |com.com>|.Newsgro|
|00000050| 75 70 73 3a 20 63 6f 6d | 70 2e 6c 61 6e 67 2e 63 |ups: com|p.lang.c|
|00000060| 2b 2b 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |++.Subje|ct: Re: |
|00000070| 70 6f 77 28 2d 31 2c 31 | 2e 31 29 20 3d 20 44 4f |pow(-1,1|.1) = DO|
|00000080| 4d 41 49 4e 20 65 72 72 | 6f 72 0a 44 61 74 65 3a |MAIN err|or.Date:|
|00000090| 20 35 20 4d 61 72 20 31 | 39 39 36 20 30 33 3a 30 | 5 Mar 1|996 03:0|
|000000a0| 30 3a 30 35 20 47 4d 54 | 0a 4f 72 67 61 6e 69 7a |0:05 GMT|.Organiz|
|000000b0| 61 74 69 6f 6e 3a 20 4e | 65 74 63 6f 6d 0a 4d 65 |ation: N|etcom.Me|
|000000c0| 73 73 61 67 65 2d 49 44 | 3a 20 3c 34 68 67 61 6e |ssage-ID|: <4hgan|
|000000d0| 6c 24 35 73 35 40 69 78 | 6e 65 77 73 33 2e 69 78 |l$5s5@ix|news3.ix|
|000000e0| 2e 6e 65 74 63 6f 6d 2e | 63 6f 6d 3e 0a 52 65 66 |.netcom.|com>.Ref|
|000000f0| 65 72 65 6e 63 65 73 3a | 20 3c 43 68 72 69 73 74 |erences:| <Christ|
|00000100| 69 61 6e 2e 53 74 72 61 | 6b 61 2e 31 35 2e 30 30 |ian.Stra|ka.15.00|
|00000110| 31 30 45 33 43 39 40 75 | 6e 69 2d 6b 6f 6e 73 74 |10E3C9@u|ni-konst|
|00000120| 61 6e 7a 2e 64 65 3e 20 | 3c 33 31 32 44 31 44 41 |anz.de> |<312D1DA|
|00000130| 38 2e 33 32 35 30 40 6e | 7a 2e 65 64 73 2e 63 6f |8.3250@n|z.eds.co|
|00000140| 6d 3e 20 3c 34 67 73 76 | 38 73 24 66 39 70 40 6e |m> <4gsv|8s$f9p@n|
|00000150| 65 77 73 2e 6d 69 63 72 | 6f 73 6f 66 74 2e 63 6f |ews.micr|osoft.co|
|00000160| 6d 3e 0a 4e 4e 54 50 2d | 50 6f 73 74 69 6e 67 2d |m>.NNTP-|Posting-|
|00000170| 48 6f 73 74 3a 20 61 75 | 73 2d 74 78 35 2d 31 35 |Host: au|s-tx5-15|
|00000180| 2e 69 78 2e 6e 65 74 63 | 6f 6d 2e 63 6f 6d 0a 4d |.ix.netc|om.com.M|
|00000190| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|000001a0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|000001b0| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|000001c0| 65 74 3d 75 73 2d 61 73 | 63 69 69 0a 43 6f 6e 74 |et=us-as|cii.Cont|
|000001d0| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|000001e0| 6f 64 69 6e 67 3a 20 37 | 62 69 74 0a 58 2d 4e 45 |oding: 7|bit.X-NE|
|000001f0| 54 43 4f 4d 2d 44 61 74 | 65 3a 20 4d 6f 6e 20 4d |TCOM-Dat|e: Mon M|
|00000200| 61 72 20 30 34 20 20 37 | 3a 30 30 3a 30 35 20 50 |ar 04 7|:00:05 P|
|00000210| 4d 20 50 53 54 20 31 39 | 39 36 0a 58 2d 4d 61 69 |M PST 19|96.X-Mai|
|00000220| 6c 65 72 3a 20 4d 6f 7a | 69 6c 6c 61 20 31 2e 32 |ler: Moz|illa 1.2|
|00000230| 32 20 28 57 69 6e 64 6f | 77 73 3b 20 55 3b 20 31 |2 (Windo|ws; U; 1|
|00000240| 36 62 69 74 29 0a 54 6f | 3a 20 61 2d 63 6e 61 64 |6bit).To|: a-cnad|
|00000250| 63 40 6d 69 63 72 6f 73 | 6f 66 74 2e 63 6f 6d 0a |c@micros|oft.com.|
|00000260| 0a 0a 3e 49 6e 20 61 72 | 74 69 63 6c 65 20 3c 33 |..>In ar|ticle <3|
|00000270| 31 32 44 31 44 41 38 2e | 33 32 35 30 40 6e 7a 2e |12D1DA8.|3250@nz.|
|00000280| 65 64 73 2e 63 6f 6d 3e | 2c 20 72 6f 73 73 2e 73 |eds.com>|, ross.s|
|00000290| 6d 69 74 68 40 6e 7a 2e | 65 64 73 2e 63 6f 6d 20 |mith@nz.|eds.com |
|000002a0| 73 61 79 73 2e 2e 2e 0a | 3e 3e 4d 61 74 68 65 6d |says....|>>Mathem|
|000002b0| 61 74 69 63 61 6c 6c 79 | 20 73 70 65 61 6b 69 6e |atically| speakin|
|000002c0| 67 2c 20 69 74 20 73 68 | 6f 75 6c 64 20 72 65 61 |g, it sh|ould rea|
|000002d0| 6c 6c 79 20 62 65 20 61 | 20 72 61 6e 67 65 20 65 |lly be a| range e|
|000002e0| 72 72 6f 72 20 72 61 74 | 68 65 72 20 74 68 61 6e |rror rat|her than|
|000002f0| 20 61 0a 3e 3e 64 6f 6d | 61 69 6e 20 65 72 72 6f | a.>>dom|ain erro|
|00000300| 72 2c 20 62 75 74 20 69 | 74 27 73 20 64 65 66 69 |r, but i|t's defi|
|00000310| 6e 69 74 65 6c 79 20 61 | 6e 20 65 72 72 6f 72 2e |nitely a|n error.|
|00000320| 0a 3e 3e 0a 3e 46 6f 72 | 20 74 68 65 20 65 78 70 |.>>.>For| the exp|
|00000330| 6f 6e 65 6e 74 69 61 74 | 69 6f 6e 20 6f 70 65 72 |onentiat|ion oper|
|00000340| 61 74 6f 72 20 69 6e 20 | 67 65 6e 65 72 61 6c 2c |ator in |general,|
|00000350| 20 69 74 20 77 6f 75 6c | 64 20 62 65 20 61 20 72 | it woul|d be a r|
|00000360| 61 6e 67 65 20 65 72 72 | 6f 72 2e 0a 3e 46 6f 72 |ange err|or..>For|
|00000370| 20 74 68 65 20 72 65 61 | 6c 20 76 61 6c 75 65 64 | the rea|l valued|
|00000380| 20 65 78 70 6f 6e 65 6e | 74 69 61 74 69 6f 6e 20 | exponen|tiation |
|00000390| 6f 70 65 72 61 74 6f 72 | 20 69 74 20 69 73 20 61 |operator| it is a|
|000003a0| 20 64 6f 6d 61 69 6e 20 | 65 72 72 6f 72 2e 0a 3e | domain |error..>|
|000003b0| 2d 2d 20 0a 3e 54 68 65 | 20 6f 70 69 6e 69 6f 6e |-- .>The| opinion|
|000003c0| 73 20 65 78 70 72 65 73 | 73 65 64 20 69 6e 20 74 |s expres|sed in t|
|000003d0| 68 69 73 20 6d 65 73 73 | 61 67 65 20 61 72 65 20 |his mess|age are |
|000003e0| 6d 79 20 6f 77 6e 20 70 | 65 72 73 6f 6e 61 6c 20 |my own p|ersonal |
|000003f0| 76 69 65 77 73 0a 3e 61 | 6e 64 20 64 6f 20 6e 6f |views.>a|nd do no|
|00000400| 74 20 72 65 66 6c 65 63 | 74 20 74 68 65 20 6f 66 |t reflec|t the of|
|00000410| 66 69 63 69 61 6c 20 76 | 69 65 77 73 20 6f 66 20 |ficial v|iews of |
|00000420| 4d 69 63 72 6f 73 6f 66 | 74 20 43 6f 72 70 6f 72 |Microsof|t Corpor|
|00000430| 61 74 69 6f 6e 2e 0a 3e | 49 6e 20 66 61 63 74 2c |ation..>|In fact,|
|00000440| 20 49 27 6d 20 6a 75 73 | 74 20 61 20 73 75 62 63 | I'm jus|t a subc|
|00000450| 6f 6e 74 72 61 63 74 6f | 72 2c 20 6e 6f 74 20 61 |ontracto|r, not a|
|00000460| 6e 20 65 6d 70 6c 6f 79 | 65 65 2c 20 73 6f 20 70 |n employ|ee, so p|
|00000470| 75 6c 6c 20 69 6e 20 79 | 6f 75 72 20 63 6c 61 77 |ull in y|our claw|
|00000480| 73 2e 0a 3e 0a 0a 20 20 | 20 20 49 74 27 73 20 6e |s..>.. | It's n|
|00000490| 6f 74 20 61 20 72 61 6e | 67 65 20 65 72 72 6f 72 |ot a ran|ge error|
|000004a0| 20 66 6f 72 20 74 68 65 | 20 65 78 70 6f 6e 65 6e | for the| exponen|
|000004b0| 74 69 61 74 69 6f 6e 20 | 6f 70 65 72 61 74 6f 72 |tiation |operator|
|000004c0| 20 69 6e 20 67 65 6e 65 | 72 61 6c 2c 20 0a 73 69 | in gene|ral, .si|
|000004d0| 6e 63 65 20 2d 31 20 74 | 6f 20 74 68 65 20 31 2e |nce -1 t|o the 1.|
|000004e0| 31 20 70 6f 77 65 72 20 | 69 73 20 2d 30 2e 39 35 |1 power |is -0.95|
|000004f0| 31 20 2d 20 30 2e 33 30 | 39 69 2e 20 20 41 20 70 |1 - 0.30|9i. A p|
|00000500| 72 6f 70 65 72 6c 79 20 | 64 65 66 69 6e 65 64 20 |roperly |defined |
|00000510| 61 6e 64 0a 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 |and.impl|emented |
|00000520| 63 6f 6d 70 6c 65 78 20 | 6e 75 6d 62 65 72 20 63 |complex |number c|
|00000530| 6c 61 73 73 20 77 6f 75 | 6c 64 20 68 61 6e 64 6c |lass wou|ld handl|
|00000540| 65 20 74 68 69 73 20 77 | 69 74 68 6f 75 74 20 61 |e this w|ithout a|
|00000550| 20 68 69 74 63 68 2c 20 | 0a 73 69 6e 63 65 20 74 | hitch, |.since t|
|00000560| 68 65 20 73 65 74 20 6f | 66 20 63 6f 6d 70 6c 65 |he set o|f comple|
|00000570| 78 20 6e 75 6d 62 65 72 | 73 20 69 73 20 63 6c 6f |x number|s is clo|
|00000580| 73 65 64 20 77 69 74 68 | 20 72 65 73 70 65 63 74 |sed with| respect|
|00000590| 20 74 6f 20 74 68 65 20 | 0a 65 78 70 6f 6e 65 6e | to the |.exponen|
|000005a0| 74 69 61 74 69 6f 6e 20 | 6f 70 65 72 61 74 6f 72 |tiation |operator|
|000005b0| 2e 20 20 54 68 65 20 72 | 65 61 6c 20 6e 75 6d 62 |. The r|eal numb|
|000005c0| 65 72 73 20 61 72 65 20 | 6e 6f 74 20 63 6c 6f 73 |ers are |not clos|
|000005d0| 65 64 20 77 69 74 68 20 | 72 65 73 70 65 63 74 0a |ed with |respect.|
|000005e0| 74 6f 20 74 68 65 20 65 | 78 70 6f 6e 65 6e 74 69 |to the e|xponenti|
|000005f0| 61 74 69 6f 6e 20 6f 70 | 65 72 61 74 6f 72 2c 20 |ation op|erator, |
|00000600| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 20 |in the s|ame way |
|00000610| 74 68 61 74 20 74 68 65 | 20 69 6e 74 65 67 65 72 |that the| integer|
|00000620| 73 20 61 72 65 20 6e 6f | 74 20 0a 63 6c 6f 73 65 |s are no|t .close|
|00000630| 64 20 77 69 74 68 20 72 | 65 73 70 65 63 74 20 74 |d with r|espect t|
|00000640| 6f 20 64 69 76 69 73 69 | 6f 6e 2e 20 20 54 68 65 |o divisi|on. The|
|00000650| 72 65 20 69 73 20 6e 6f | 20 73 75 63 68 20 74 68 |re is no| such th|
|00000660| 69 6e 67 20 61 73 20 61 | 20 27 72 65 61 6c 20 0a |ing as a| 'real .|
|00000670| 76 61 6c 75 65 64 20 65 | 78 70 6f 6e 65 6e 74 69 |valued e|xponenti|
|00000680| 61 74 69 6f 6e 20 6f 70 | 65 72 61 74 6f 72 27 2e |ation op|erator'.|
|00000690| 20 20 4f 70 65 72 61 74 | 6f 72 73 20 61 72 65 20 | Operat|ors are |
|000006a0| 6f 70 65 72 61 74 6f 72 | 73 2e 20 20 54 68 65 72 |operator|s. Ther|
|000006b0| 65 20 69 73 0a 73 75 63 | 68 20 61 20 74 68 69 6e |e is.suc|h a thin|
|000006c0| 67 20 61 73 20 61 20 72 | 65 61 6c 20 76 61 6c 75 |g as a r|eal valu|
|000006d0| 65 64 20 65 78 70 6f 6e | 65 6e 74 69 61 74 69 6f |ed expon|entiatio|
|000006e0| 6e 20 2d 66 75 6e 63 74 | 69 6f 6e 2d 2c 20 77 68 |n -funct|ion-, wh|
|000006f0| 69 63 68 20 69 73 20 6a | 75 73 74 0a 74 68 65 20 |ich is j|ust.the |
|00000700| 65 78 70 6f 6e 65 6e 74 | 69 61 74 69 6f 6e 20 6f |exponent|iation o|
|00000710| 70 65 72 61 74 6f 72 20 | 61 70 70 6c 69 65 64 20 |perator |applied |
|00000720| 6f 6e 6c 79 20 74 6f 20 | 74 68 6f 73 65 20 61 72 |only to |those ar|
|00000730| 67 75 6d 65 6e 74 73 20 | 77 68 69 63 68 20 0a 67 |guments |which .g|
|00000740| 69 76 65 20 61 20 72 65 | 61 6c 20 72 65 73 75 6c |ive a re|al resul|
|00000750| 74 2e 20 20 54 68 61 74 | 20 69 73 20 77 68 61 74 |t. That| is what|
|00000760| 20 50 4f 57 20 69 73 20 | 28 20 73 6f 72 74 6f 66 | POW is |( sortof|
|00000770| 20 29 2e 20 20 54 68 75 | 73 2c 20 79 6f 75 72 0a | ). Thu|s, your.|
|00000780| 63 6f 6d 70 69 6c 65 72 | 20 69 73 20 63 6f 72 72 |compiler| is corr|
|00000790| 65 63 74 6c 79 20 63 6c | 61 73 73 69 6e 67 20 74 |ectly cl|assing t|
|000007a0| 68 65 20 65 72 72 6f 72 | 20 61 73 20 61 20 64 6f |he error| as a do|
|000007b0| 6d 61 69 6e 20 65 72 72 | 6f 72 2c 20 6e 6f 74 20 |main err|or, not |
|000007c0| 61 0a 72 61 6e 67 65 20 | 65 72 72 6f 72 2e 0a 0a |a.range |error...|
|000007d0| 20 0a 0a | | .. | |
+--------+-------------------------+-------------------------+--------+--------+